"use client"
import React from 'react';
import { Button } from 'antd';
import { useRouter } from 'next/navigation';


const Home: React.FC = () => {
  const router = useRouter()
  const onClick = () => {
    router.push('/dashboard')
  };

  return <Button type="primary" onClick={onClick}>Primary Button</Button>
}
export default Home